//
//  Waypoints.m
//  HappyTrip
//
//  Created by dlios on 15-3-26.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Waypoints.h"

@implementation Waypoints
-(instancetype)initWithDictionary:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.photo = [dic objectForKey:@"photo"];
        self.text = [dic objectForKey:@"text"];
        self.local_time = [dic objectForKey:@"local_time"];
        self.trip_id = [[dic objectForKey:@"trip_id"] stringValue];
        self.photo_info = [dic objectForKey:@"photo_info"];
        self.poi = [dic objectForKey:@"poi"];
        self.province = [dic objectForKey:@"province"];
        self.city = [dic objectForKey:@"city"];
        self.country = [dic objectForKey:@"country"];
    }
    return self;
}
- (void) setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

- (void)dealloc
{
    [_poi release];
    [_city release];
    [_province release];
    [_country release];
    [_photo release];
    [_text release];
    [_local_time release];
    [_trip_id release];
    [_photo_info release];
    [super dealloc];
}


@end
